package com.example.springbootgoods.controller;

import com.example.springbootgoods.entity.ClassName;
import com.example.springbootgoods.service.ClassNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/className")
public class ClassNameRestController {

    @Autowired
    ClassNameService classNameService;
    @GetMapping("/selectAll")
    public List<ClassName> selectAll(){
        return classNameService.selectAll();
    }
}
